
Error 1
{#
//Heading of error:
        SQL ERROR (Finding current ID and and updating suspended from 0 to 1).
//Code:
        if (!isset($_POST['lockaccount']))
        {        
            //checks are ok. Post the data - be careful of the prepare and brackets ??? 
            $sql = $dbconn->prepare("UPDATE bartusers SET suspended = ? WHERE userid = ?");                           
            $sql->bind_param("ii", $suspended, $currentid);
            
            //execute the query 

            $sql->execute();

            //close the database 

            $sql->close();
            $dbconn->close();
            
            //redirect to list of dvd's

            header("location: ../");
        }

//Error:
	Warning: mysqli::prepare(): Couldn't fetch mysqli in O:\xampp\htdocs\zenithsyncmedia\zenithsynccloud\assets\scripts\functions\lockmyaccount.php on line 34

	Fatal error: Uncaught Error: Call to a member function bind_param() on null in O:\xampp\htdocs\zenithsyncmedia\zenithsynccloud\assets\scripts\functions\lockmyaccount.php:35 Stack trace: #0 {main} thrown in O:\xampp\htdocs\zenithsyncmedia\zenithsynccloud\assets\scripts\functions\lockmyaccount.php on line 35

//Solution:

Not solved yet.

#}

Error 2
{#
//Heading of error:
    PHP ERROR (Checking if user has is suspended). 
//Code:
        if(!isset($_POST['lockaccount']) == 0) {
        } 
        else
            {
            header('Location: ../suspended');
        }


//Error:

    Would direct you to the ../suspended/index.php file with or without you being suspended

//Solution:
    Fixed the problem as it is using the if(!isset($_POST['lockaccount']) == 0) not the correct code ($_SESSION['suspended'] == 0)

#}
Error 3
{
//Heading of error
uploading S3 Files Via Rich file manager

//Error
Access Deniened


//Solution
Changing permission within the IAM Group policy within AWS IAM
https://stackoverflow.com/questions/34455410/error-executing-putobject-on-aws-upload-fails

}